﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using cndp.Model;
using cndp.View;
using cndp;
using cndp.Presenter;
using Microsoft.Office.Core;
using System.ComponentModel;

namespace cndp
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {             
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var _cl = new ContestList();
            _cl.ReadContestListFromXmlFile("../../Simhopp.xml");
            var _oldCl = new ContestList();
           
            var form = new FormMain();
            var presenter = new PresenterFormMain(form, _cl,_oldCl);
            Application.Run(form);
        }
    }
}
